<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</meta>
<title>F.highlight演示</title>
<style type="text/css">
.dbox{
	font-family:Courier New;
	font-size:12px;
	border:1px solid #8a8a8a;
	background-color:#eeeeee;
	margin-top:15px;
	padding:6px;
}
</style>
<script type="text/javascript" src="../../1st.js"></script>
<script type="text/javascript" src="../../1st.highlight.js"></script>
</head>
<body>
<textArea id="code" rows="12" cols="80">
//这是一个测试
function SyntaxText(){
	var a = /^[u4e00-u9fa5]+$/;
	var b = 4 / 5, c = 8/10;
	var d = new Array(100);
	var e = 5/6;  //this is a notes
	//求1-100之间的质数
	for (var i=0;i<100;i++){/*
		if (i%2){
			a += i;	
		}*/
	}
	alert("100du");
	window.alert(a[0]);
}
</textArea>

<br/>
<button onclick="F('display').highlight(F.node('code').value,'js');">go</button>

<div id="display" class="dbox"></div>
</body>
</html>